# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-regexp-shellish
pkgver=0.93
pkgrel=14
pkgdesc="Perl/CPAN Module Regexp::Shellish : Shelllike regular expressions"
arch=("any")
url="https://search.cpan.org/dist/Regexp-Shellish"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/R/RB/RBS/Regexp-Shellish-$pkgver.tar.gz")
sha256sums=('39b4991192e6c6fcda39075b674515fdb3a0657c1cdccc8c2552e434233955f9')

build() {
  cd "$srcdir"/Regexp-Shellish-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Regexp-Shellish-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
